package com.gzsxy.service.impl;

import com.gzsxy.dao.UserDao;
import com.gzsxy.entity.TPermission;
import com.gzsxy.entity.TUser;
import com.gzsxy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xiaolong
 * @version 1.0
 * @description: TODO
 * @date 2021/11/3 10:14
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public TUser findByUsername(String username) {
        return userDao.findByUsername(username);
    }


    @Override
    public List<TPermission> findPermissionByUsername(String username) {
        return userDao.findPermissionByUsername(username);
    }
}
